/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cr.ac.una.sive.vista;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;


@ManagedBean
@SessionScoped
public class TableBean {

    //  List of sample inventory data.
    private InventoryItem[] carInventory = new InventoryItem[]{
            new InventoryItem("582854", "7:50am", " 5:04pm",  "Biología"),
            new InventoryItem("RFT-567", "7:45am", " 6:07pm",  "Informática"),
            new InventoryItem("435555", "9:30am", " 4:31pm",  "Uriche"),
            new InventoryItem("BBT-134", "8:50am", " 3:35pm",  "Ciencias Sociales"),
            new InventoryItem("538285", "11:50am", " 2:15pm",  "Informática"),
            new InventoryItem("LIG-007", "9:12am", " 4:21pm",  "Biología"),
            new InventoryItem("3422344", "11:10am", " 3:55pm",  "Ciencias Sociales"),
            new InventoryItem("232344", "12:50am", " 2:05pm",  "Filosofía y Letras")
    };

    /**
     * Gets the inventoryItem array of car data.
     * @return array of car inventory data.
     */
    public InventoryItem[] getCarInventory() {
        return carInventory;
    }

    /**
     * Inventory Item subclass stores data about a cars inventory data.  Properties
     * such a stock, model, description, odometer and price are stored.
     */
    public class InventoryItem {
        // slock number
        String placa;
        String hora_entrada;
        String hora_salida;        
        String parqueo;
     

        /**
         * Creates a new instance of InventoryItem.
         * @param placa stock number.
         * @param hora_entrada model or type of inventory.
         * @param hora_salida description of item.
         * @param odometer number of miles on odometer.
         * @param price price of care in Canadian dollars.
         */
        public InventoryItem(String placa, String hora_entrada, String hora_salida, String parqueo) {
            this.placa = placa;
            this.hora_entrada = hora_entrada;
            this.hora_salida = hora_salida;
            this.parqueo = parqueo;
        
        }

        /**
         * Gets the stock number of this iventory item.
         * @return stock number.
         */
        public String getPlaca() {
            return placa;
        }

        public String getHora_Entrada() {
            return hora_entrada;
        }
     
        public String getHora_Salida() {
            return hora_salida;
        }
        public String getParqueo() {
            return parqueo;
        }

    }

}
